<!DOCTYPE html>
<html>
 <head>
  <title>
   Hello World PixieApp
  </title>
  <meta content="&#xA9;Copyright IBM Corporation 2018" name="copyright"/>
  <meta content="&#xA9;Copyright IBM Corporation 2018" name="DC.Rights.Owner"/>
  <meta content="&#xA9; Copyright IBM Corporation 2016, 2017, 2018" name="dcterms.rights"/>
  <meta content="2018-03-09" name="DC.date"/>
 </head>
 <body>
  <div>
   <h1>
    Hello World PixieApp
   </h1>
   <p>
    The following sample PixieApp provides two simple views and their associated routes. The first view (default view) creates a button that, when clicked, will invoke the second view. The second view creates another button that redirects to the first view, and so on and so forth.
   </p>
   <pre>from pixiedust.display.app import *
@PixieApp
class HelloWorldPixieApp:
    @route()
    def main(self):
        return"""
            &lt;input pd_options="clicked=true" type="button" value="Click Me"&gt;
        """
    @route(clicked="true")
    def _clicked(self):
        return """
            &lt;input pd_options="clicked=false" type="button" value="You Clicked, Now Go back"&gt;
        """
#run the app
HelloWorldPixieApp().run(runInDialog='false')</pre>
   <p>
    <h3>
     Return to main topic for:
    </h3>
    <ul>
     <li>
      <a href="pixieapps.html">
       PixieApps: Use PixieDust to Generate UI Elements
      </a>
     </li>
    </ul>
   </p>
  </div>
 </body>
</html>
